package com.itcam;

import com.itcam.cli.CommandExecutor;

import java.io.File;

import static com.itcam.generator.StaticGenerator.copyFilesByHutool;

public class Main {

    public static void main(String[] args) {
//        args = new String[]{"generate", "-l", "-a", "-o"};
//        args = new String[]{"config"};
        args = new String[]{"list"};
        CommandExecutor commandExecutor = new CommandExecutor();
        commandExecutor.doExecute(args);
    }

//    public static void main(String[] args) {
//        // 获取整个项目的根路径
//        String projectPath = System.getProperty("user.dir");
//        System.out.println(projectPath);
////        File parentFile = new File(projectPath).getParentFile();
////        System.out.println(parentFile);
//        // 输入路径：ACM 示例代码模板目录
//        String inputPath = new File(projectPath, "open-source-code-demo-projects/acm-template").getAbsolutePath();
//        // 输出路径：直接输出到项目的根目录
//        String outputPath = projectPath;
//        copyFilesByHutool(inputPath, outputPath);
//    }


}
